﻿using AiShou.Common;
using AiShou.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AiShou.IBLL
{
    /// <summary>
    /// 账户业务管理接口
    /// </summary>
        public interface IAccountManager
        {
      
            /// <summary>
            /// 通过用户名登录
            /// </summary>
            /// <param name="userName"></param>
            /// <param name="password"></param>
            /// <returns>返回用户信息</returns>
            OperResult<TBUsers> LoginByUserName(string userName, string password);

            /// <summary>
            /// 通过手机号登录
            /// </summary>
            /// <param name="mobileNumber"></param>
            /// <param name="password"></param>
            /// <returns>返回用户信息</returns>
            OperResult<TBUsers> LoginByMobileNumber(string mobileNumber, string password);

            /// <summary>
            /// 注册用户
            /// </summary>
            /// <param name="login">登录信息</param>
            /// <returns></returns>
            OperResult Register(TBLogins login);
        }
    }

